<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // \d  等价于  [0-9]
        // \D  等价于  [^0-9]
        // \w  等价于  [A-Za-z0-9_]
        // \W  等价于  [^A-Za-z0-9_]
        // \s  匹配空格
        // \S  匹配非空格字符
    </script>
    </script>
</body>

</html>